<html>
<body>
<div id="iframebox"></div>

</body>
<script src='http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js'></script>
<script>
var url = "http://m.baidu.com";
var iframe = document.createElement('iframe');
iframe.src = url ;
iframe.width = 300;
iframe.height = 500;
iframe.id = 'baiduframe';
$('#iframebox').append(iframe);

</script>
</html>


